<!--编辑栏目-->
<div class="dialog_content">
	<form id="info_form" action="{:url('editDo')}" method="post">
	<table width="100%" class="table_form">
        <tr><th width="100">类别 :</th><td colspan="3">{:baomingType($info['type'])}</td></tr>
		<tr>
			<th>姓名 :</th>
			<td>{$info.name}</td>
            <th>电话 :</th>
            <td>{$info.phone}</td>
		</tr>
        {if condition='$info.type eq 5'}
        <tr>
            <th>红包金额 :</th>
            <td>{$info.money}</td>
        </tr>
        {/if}
        <tr><th>备注 :</th><td colspan="3">{$info.memo}</td></tr>
        <tr><th>时间 :</th><td colspan="3">{:date("Y-m-d H:i:s",$info['create_time'])}</td></tr>
        {notempty name='info.house_title'}<tr><th>所属楼盘 :</th><td colspan="3">{$info.house_title}</td></tr>{/notempty}
        <tr><th>联系 :</th><td colspan="3">
            <label><input type="radio" name="status" value="1" {if condition="$info['status'] eq 1"}checked{/if} /> 已联系</label> &nbsp;
            <label><input type="radio" name="status" value="0" {if condition="$info['status'] eq 0"}checked{/if} /> 未联系</label>
        </td></tr>
        <tr><th>管理员备注 :</th><td colspan="3"><textarea name="info" style="width:300px;height:80px;">{$info.info}</textarea></td></tr>
	</table>
	<input type="hidden" name="id" value="{$info.id}" />
	</form>
</div>
<script>
    $(function(){
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                $.dialog.get(result.dialog).close();
                $.yingloujie.tip({content:result.msg});
                setTimeout(function(){window.location.reload();},1000);
            } else {
                $.yingloujie.tip({content:result.msg, icon:'alert'});
            }
        }
    });
</script>